package work.vcloud.baseinfo.vo;

public class ExceptionVo extends Exception {
    private static final long serialVersionUID = 1L;
    private String code;
    private String msg;
    private Exception exception;

    public ExceptionVo(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public ExceptionVo(String code, String msg, Exception exception) {
        if (exception != null) {
            exception.printStackTrace();
        }
        this.code = code;
        this.msg = msg;
        this.exception = exception;
    }

    public String getCode() {
        return this.code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return this.msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }

    public Exception getException() {
        return this.exception;
    }

    public void setException(Exception exception) {
        this.exception = exception;
    }
}
